using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Serialization;
using M13.GEditor;

namespace M13.Game.Item.Weapon
{
    public enum CastType
    {
        Box,
        Ray
    }
    [CreateAssetMenu(fileName = "WeaponResourceConfig", menuName = "ItemConfigs/WeaponResourceConfig")]
    public class WeaponResourceConfig : ScriptableObject, IItemResourceConfig
    {
        public string weaponAttackAnimation;

        public int animLayer;
        public CastType castType;
        
        [PropertyActive("castType", CompareType.Equal, CastType.Box)]
        public Vector3 attackBoxCenter;
        [PropertyActive("castType", CompareType.Equal, CastType.Box)]
        public Vector3 attackBoxSize;

        [PropertyActive("castType", CompareType.Equal, CastType.Ray)]
        public Vector3 lineFrom;
        [PropertyActive("castType", CompareType.Equal, CastType.Ray)]
        public Vector3 lineTo;

        public float normalizedAttackTimeStamp;

    }
}